<template>
  <div class="nav2">
    <div class="container pt-4">
      <div class="row">
        <div class="col-12">
          <div class="pointsRule">
            <ul id="list">
              <li style="z-index:6;background-image: linear-gradient(to right, #005bea ,#00c6fb)" class="green" @click="gotoHome()"><a><span>首页</span><i style="background-color:#00c6fb"></i></a></li>
              <li style="z-index:5;background-image: linear-gradient(to right, #005bea ,#00c6fb)"  @click="gotoNav()"><a><em class="before"></em><span>预算管理</span><i style="background-color:#00c6fb"></i></a></li>
              <li style="z-index:4;background-color: #ffc107;"><a><em class="before"></em><span style="color: #4e555b;">预算编制</span><i style="background-color:#ffc107;"></i></a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>
    <div class="content">
      <ul class="pl-0">
        <li class="text-center" v-for="(module, index) in modules" :key="index">
          <router-link :to="module.toUrl">{{module.name}}</router-link>
        </li>
      </ul>
    </div>
  </div>
</template>

<script>
  export default {
    name: "navModule",
    data () {
      return {
        modules:[
          {
            name:'制定目标',
            toUrl:'/budget'
          },
          {
            name:'文件上传',
            toUrl:'/file'
          }
        ]
      }
    },
  }
</script>

<style scoped>
  .nav2{
    height: 100%;
    /*background: url("~@/assets/img/bg4.png") no-repeat;*/
    background-size: 100% auto;
    background-position: 0 -100px;
  }
  .content{
    padding-top: 8%;
  }
  .content ul{
    display: flex;
    flex-direction: row;
    justify-content: center;
  }
  .content ul li{
    list-style: none;
    display: inline;
  }
  .content ul li a{
    background: #005cbf;
    color: white;
    display: inline-block;
    margin: 40px;
    border-radius: 10px;
    width: 150px;
    /*line-height: 150px;*/
    height: 150px;
    font-size: 24px;
    font-weight: bold;
    box-shadow: 0 0 10px #95999c;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-decoration: none;
  }
  .content ul li a div{
    font-size: 16px;
    font-weight: normal;
    color: #cbd3da;
    font-weight: bold;

  }
</style>
